<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="DecisionMaking.Domain" %>
<%@ Import Namespace="MvcContrib.UI.Grid" %>
<asp:Content ContentPlaceHolderID="TitleContent" runat="server">My Environments</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
	<p>
		<%= Html.ActionLink("New Environment", "Add") %>
	</p>
	<%Html.Grid<DecisionMaking.Domain.Environment>("environments").Columns( column => {
		column.For(e => e.Name);
		column.For(e => "[Run Simulation]").Named("Simulation");
		column.For(e => Html.ActionLink("Edit", "Edit", new {id = e.Id})).Named("Actions").DoNotEncode();
	}).Render();%>

</asp:Content>